package c.c.b.a.b.a;

import c.c.b.a.a.l;
import c.c.b.a.a.r;
import c.c.b.a.a.v;
import c.c.b.a.b.a0;
import c.c.b.a.b.c0;
import c.c.b.a.b.d0;
import c.c.b.a.b.e0;
import c.c.b.a.b.k;
import c.c.b.a.b.o;
import c.c.b.a.b.p;
import c.c.b.a.b.s;
import c.c.b.a.b.w;
import c.c.b.a.b.x;
import c.c.b.a.b.y;
import c.c.b.a.b.z;
import com.huawei.agconnect.exception.AGCServerException;
import com.pgl.sys.ces.out.ISdkLite;
import java.io.Closeable;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.IDN;
import java.net.InetAddress;
import java.net.ProtocolException;
import java.net.Socket;
import java.nio.charset.Charset;
import java.text.DateFormat;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.TimeZone;
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;
import java.util.regex.Pattern;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;

/* compiled from: Util */
public final class e {
    public static final byte[] a;
    public static final String[] b = new String[0];
    public static final c.c.b.a.b.e c;
    public static final e0 d;
    public static final c.c.b.a.a.h e = c.c.b.a.a.h.n("efbbbf");
    public static final c.c.b.a.a.h f = c.c.b.a.a.h.n("feff");
    public static final c.c.b.a.a.h g = c.c.b.a.a.h.n("fffe");
    public static final c.c.b.a.a.h h = c.c.b.a.a.h.n("0000ffff");
    public static final c.c.b.a.a.h i = c.c.b.a.a.h.n("ffff0000");
    public static final Charset j = Charset.forName("UTF-8");
    public static final Charset k = Charset.forName("UTF-16BE");
    public static final Charset l = Charset.forName("UTF-16LE");
    public static final Charset m = Charset.forName("UTF-32BE");
    public static final Charset n = Charset.forName("UTF-32LE");
    public static final TimeZone o = TimeZone.getTimeZone("GMT");
    public static final Comparator<String> p = new a();
    public static final Pattern q = Pattern.compile("([0-9a-fA-F]*:[0-9a-fA-F:.]*)|([\\d.]+)");

    /* compiled from: Util */
    public static class a implements Comparator<String> {
        public int compare(Object obj, Object obj2) {
            return ((String) obj).compareTo((String) obj2);
        }
    }

    /* compiled from: HttpCodec */
    public interface d {
        c.c.b.a.b.c.a a(boolean z) throws IOException;

        void a() throws IOException;

        void a(c0 c0Var) throws IOException;

        c.c.b.a.b.e b(c.c.b.a.b.c cVar) throws IOException;

        void b() throws IOException;

        v c(c0 c0Var, long j);
    }

    /* compiled from: HttpDate */
    public final class e {
        public static final ThreadLocal<DateFormat> a = new a();
        public static final String[] b;
        public static final DateFormat[] c;

        /* compiled from: HttpDate */
        public static class a extends ThreadLocal<DateFormat> {
            public Object initialValue() {
                SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US);
                simpleDateFormat.setLenient(false);
                simpleDateFormat.setTimeZone(e.o);
                return simpleDateFormat;
            }
        }

        static {
            String[] strArr = new String[]{"EEE, dd MMM yyyy HH:mm:ss zzz", "EEEE, dd-MMM-yy HH:mm:ss zzz", "EEE MMM d HH:mm:ss yyyy", "EEE, dd-MMM-yyyy HH:mm:ss z", "EEE, dd-MMM-yyyy HH-mm-ss z", "EEE, dd MMM yy HH:mm:ss z", "EEE dd-MMM-yyyy HH:mm:ss z", "EEE dd MMM yyyy HH:mm:ss z", "EEE dd-MMM-yyyy HH-mm-ss z", "EEE dd-MMM-yy HH:mm:ss z", "EEE dd MMM yy HH:mm:ss z", "EEE,dd-MMM-yy HH:mm:ss z", "EEE,dd-MMM-yyyy HH:mm:ss z", "EEE, dd-MM-yyyy HH:mm:ss z", "EEE MMM d yyyy HH:mm:ss z"};
            b = strArr;
            c = new DateFormat[strArr.length];
        }

        public static Date a(String str) {
            if (str.length() == 0) {
                return null;
            }
            ParsePosition parsePosition = new ParsePosition(0);
            Date parse = ((DateFormat) a.get()).parse(str, parsePosition);
            if (parsePosition.getIndex() == str.length()) {
                return parse;
            }
            String[] strArr = b;
            synchronized (strArr) {
                int length = strArr.length;
                for (int i = 0; i < length; i++) {
                    DateFormat[] dateFormatArr = c;
                    DateFormat dateFormat = dateFormatArr[i];
                    if (dateFormat == null) {
                        dateFormat = new SimpleDateFormat(b[i], Locale.US);
                        dateFormat.setTimeZone(e.o);
                        dateFormatArr[i] = dateFormat;
                    }
                    parsePosition.setIndex(0);
                    Date parse2 = dateFormat.parse(str, parsePosition);
                    if (parsePosition.getIndex() != 0) {
                        return parse2;
                    }
                }
                return null;
            }
        }
    }

    /* compiled from: HttpHeaders */
    public final class f {
        static {
            Pattern.compile(" +([^ \"=]*)=(:?\"([^\"]*)\"|([^ \"=]*)) *(:?,|$)");
        }

        public static int a(String str, int i, String str2) {
            while (i < str.length() && str2.indexOf(str.charAt(i)) == -1) {
                i++;
            }
            return i;
        }

        public static long b(c.c.b.a.b.c cVar) {
            String c = cVar.f.c("Content-Length");
            if (c != null) {
                try {
                    return Long.parseLong(c);
                } catch (NumberFormatException unused) {
                }
            }
            return -1;
        }

        /* JADX WARNING: Removed duplicated region for block: B:216:0x034c  */
        /* JADX WARNING: Removed duplicated region for block: B:236:0x0357 A:{SYNTHETIC} */
        /* JADX WARNING: Missing block: B:43:0x00e2, code skipped:
            if (r20 <= 0) goto L_0x00f7;
     */
        /* JADX WARNING: Missing block: B:109:0x01c5, code skipped:
            if (r11 == null) goto L_0x0065;
     */
        /* JADX WARNING: Missing block: B:119:0x01f8, code skipped:
            if (r14 != null) goto L_0x0209;
     */
        /* JADX WARNING: Missing block: B:125:0x0207, code skipped:
            if (r14 == null) goto L_0x0225;
     */
        /* JADX WARNING: Missing block: B:126:0x0209, code skipped:
            java.lang.Thread.currentThread().interrupt();
     */
        /* JADX WARNING: Missing block: B:195:0x0306, code skipped:
            if (r0 != null) goto L_0x0317;
     */
        public static void c(c.c.b.a.b.p r34, c.c.b.a.b.w r35, c.c.b.a.b.v r36) {
            /*
            r1 = r34;
            r0 = r36;
            r2 = c.c.b.a.b.p.a;
            if (r1 != r2) goto L_0x0009;
        L_0x0008:
            return;
        L_0x0009:
            r2 = c.c.b.a.b.o.j;
            r2 = "Set-Cookie";
            r3 = r36.a();
            r5 = 0;
            r6 = 0;
            r7 = 0;
        L_0x0014:
            if (r6 >= r3) goto L_0x0032;
        L_0x0016:
            r8 = r0.b(r6);
            r8 = r2.equalsIgnoreCase(r8);
            if (r8 == 0) goto L_0x002f;
        L_0x0020:
            if (r7 != 0) goto L_0x0028;
        L_0x0022:
            r7 = new java.util.ArrayList;
            r8 = 2;
            r7.<init>(r8);
        L_0x0028:
            r8 = r0.d(r6);
            r7.add(r8);
        L_0x002f:
            r6 = r6 + 1;
            goto L_0x0014;
        L_0x0032:
            if (r7 == 0) goto L_0x0039;
        L_0x0034:
            r0 = java.util.Collections.unmodifiableList(r7);
            goto L_0x003d;
        L_0x0039:
            r0 = java.util.Collections.emptyList();
        L_0x003d:
            r2 = r0;
            r3 = r2.size();
            r6 = 0;
            r7 = 0;
        L_0x0044:
            if (r6 >= r3) goto L_0x035e;
        L_0x0046:
            r0 = r2.get(r6);
            r8 = r0;
            r8 = (java.lang.String) r8;
            r9 = java.lang.System.currentTimeMillis();
            r11 = r8.length();
            r12 = 59;
            r0 = c.c.b.a.b.a.e.c(r8, r5, r11, r12);
            r13 = 61;
            r14 = c.c.b.a.b.a.e.c(r8, r5, r0, r13);
            if (r14 != r0) goto L_0x006a;
        L_0x0063:
            r8 = r35;
        L_0x0065:
            r27 = r2;
        L_0x0067:
            r4 = 0;
            goto L_0x0348;
        L_0x006a:
            r16 = c.c.b.a.b.a.e.x(r8, r5, r14);
            r15 = r16.isEmpty();
            if (r15 != 0) goto L_0x0063;
        L_0x0074:
            r15 = c.c.b.a.b.a.e.t(r16);
            r4 = -1;
            if (r15 == r4) goto L_0x007c;
        L_0x007b:
            goto L_0x0063;
        L_0x007c:
            r14 = r14 + 1;
            r17 = c.c.b.a.b.a.e.x(r8, r14, r0);
            r14 = c.c.b.a.b.a.e.t(r17);
            if (r14 == r4) goto L_0x0089;
        L_0x0088:
            goto L_0x0063;
        L_0x0089:
            r0 = r0 + 1;
            r18 = -1;
            r4 = 1;
            r20 = r18;
            r22 = 0;
            r23 = 0;
            r24 = 1;
            r25 = 0;
            r26 = 253402300799999; // 0xe677d21fdbff float:-1.71647681E11 double:1.251973714024093E-309;
            r28 = 0;
            r29 = 0;
        L_0x00a1:
            r30 = 9223372036854775807; // 0x7fffffffffffffff float:NaN double:NaN;
            r32 = -9223372036854775808;
            if (r0 >= r11) goto L_0x0157;
        L_0x00aa:
            r14 = c.c.b.a.b.a.e.c(r8, r0, r11, r12);
            r15 = c.c.b.a.b.a.e.c(r8, r0, r14, r13);
            r0 = c.c.b.a.b.a.e.x(r8, r0, r15);
            if (r15 >= r14) goto L_0x00bf;
        L_0x00b8:
            r15 = r15 + 1;
            r15 = c.c.b.a.b.a.e.x(r8, r15, r14);
            goto L_0x00c1;
        L_0x00bf:
            r15 = "";
        L_0x00c1:
            r12 = "expires";
            r12 = r0.equalsIgnoreCase(r12);
            if (r12 == 0) goto L_0x00d2;
        L_0x00c9:
            r0 = r15.length();	 Catch:{ IllegalArgumentException -> 0x0151 }
            r26 = c.c.b.a.b.o.b(r15, r5, r0);	 Catch:{ IllegalArgumentException -> 0x0151 }
            goto L_0x00fc;
        L_0x00d2:
            r12 = "max-age";
            r12 = r0.equalsIgnoreCase(r12);
            if (r12 == 0) goto L_0x0100;
        L_0x00da:
            r20 = java.lang.Long.parseLong(r15);	 Catch:{ NumberFormatException -> 0x00e5 }
            r30 = 0;
            r0 = (r20 > r30 ? 1 : (r20 == r30 ? 0 : -1));
            if (r0 > 0) goto L_0x00fc;
        L_0x00e4:
            goto L_0x00f7;
        L_0x00e5:
            r0 = move-exception;
            r12 = r0;
            r0 = "-?\\d+";
            r0 = r15.matches(r0);	 Catch:{  }
            if (r0 == 0) goto L_0x00ff;
        L_0x00ef:
            r0 = "-";
            r0 = r15.startsWith(r0);	 Catch:{  }
            if (r0 == 0) goto L_0x00fa;
        L_0x00f7:
            r20 = r32;
            goto L_0x00fc;
        L_0x00fa:
            r20 = r30;
        L_0x00fc:
            r25 = 1;
            goto L_0x0151;
        L_0x00ff:
            throw r12;	 Catch:{  }
        L_0x0100:
            r12 = "domain";
            r12 = r0.equalsIgnoreCase(r12);
            if (r12 == 0) goto L_0x0131;
        L_0x0108:
            r0 = ".";
            r12 = r15.endsWith(r0);	 Catch:{ IllegalArgumentException -> 0x0151 }
            if (r12 != 0) goto L_0x012b;
        L_0x0110:
            r0 = r15.startsWith(r0);	 Catch:{ IllegalArgumentException -> 0x0151 }
            if (r0 == 0) goto L_0x011a;
        L_0x0116:
            r15 = r15.substring(r4);	 Catch:{ IllegalArgumentException -> 0x0151 }
        L_0x011a:
            r0 = c.c.b.a.b.a.e.h(r15);	 Catch:{ IllegalArgumentException -> 0x0151 }
            if (r0 == 0) goto L_0x0125;
        L_0x0120:
            r28 = r0;
            r24 = 0;
            goto L_0x0151;
        L_0x0125:
            r0 = new java.lang.IllegalArgumentException;	 Catch:{ IllegalArgumentException -> 0x0151 }
            r0.<init>();	 Catch:{ IllegalArgumentException -> 0x0151 }
            throw r0;	 Catch:{ IllegalArgumentException -> 0x0151 }
        L_0x012b:
            r0 = new java.lang.IllegalArgumentException;	 Catch:{ IllegalArgumentException -> 0x0151 }
            r0.<init>();	 Catch:{ IllegalArgumentException -> 0x0151 }
            throw r0;	 Catch:{ IllegalArgumentException -> 0x0151 }
        L_0x0131:
            r12 = "path";
            r12 = r0.equalsIgnoreCase(r12);
            if (r12 == 0) goto L_0x013c;
        L_0x0139:
            r29 = r15;
            goto L_0x0151;
        L_0x013c:
            r12 = "secure";
            r12 = r0.equalsIgnoreCase(r12);
            if (r12 == 0) goto L_0x0147;
        L_0x0144:
            r22 = 1;
            goto L_0x0151;
        L_0x0147:
            r12 = "httponly";
            r0 = r0.equalsIgnoreCase(r12);
            if (r0 == 0) goto L_0x0151;
        L_0x014f:
            r23 = 1;
        L_0x0151:
            r0 = r14 + 1;
            r12 = 59;
            goto L_0x00a1;
        L_0x0157:
            r0 = (r20 > r32 ? 1 : (r20 == r32 ? 0 : -1));
            if (r0 != 0) goto L_0x0160;
        L_0x015b:
            r8 = r35;
            r18 = r32;
            goto L_0x018f;
        L_0x0160:
            r0 = (r20 > r18 ? 1 : (r20 == r18 ? 0 : -1));
            if (r0 == 0) goto L_0x018b;
        L_0x0164:
            r11 = 9223372036854775; // 0x20c49ba5e353f7 float:-3.943512E-16 double:4.663754807431093E-308;
            r0 = (r20 > r11 ? 1 : (r20 == r11 ? 0 : -1));
            if (r0 > 0) goto L_0x0171;
        L_0x016d:
            r11 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;
            r30 = r20 * r11;
        L_0x0171:
            r30 = r9 + r30;
            r0 = (r30 > r9 ? 1 : (r30 == r9 ? 0 : -1));
            r8 = 253402300799999; // 0xe677d21fdbff float:-1.71647681E11 double:1.251973714024093E-309;
            if (r0 < 0) goto L_0x0186;
        L_0x017c:
            r0 = (r30 > r8 ? 1 : (r30 == r8 ? 0 : -1));
            if (r0 <= 0) goto L_0x0181;
        L_0x0180:
            goto L_0x0186;
        L_0x0181:
            r8 = r35;
            r18 = r30;
            goto L_0x018f;
        L_0x0186:
            r18 = r8;
            r8 = r35;
            goto L_0x018f;
        L_0x018b:
            r8 = r35;
            r18 = r26;
        L_0x018f:
            r0 = r8.d;
            r9 = 46;
            r10 = r28;
            if (r10 != 0) goto L_0x0199;
        L_0x0197:
            r10 = r0;
            goto L_0x01c9;
        L_0x0199:
            r11 = r0.equals(r10);
            if (r11 == 0) goto L_0x01a0;
        L_0x019f:
            goto L_0x01c2;
        L_0x01a0:
            r11 = r0.endsWith(r10);
            if (r11 == 0) goto L_0x01c4;
        L_0x01a6:
            r11 = r0.length();
            r12 = r10.length();
            r11 = r11 - r12;
            r11 = r11 - r4;
            r11 = r0.charAt(r11);
            if (r11 != r9) goto L_0x01c4;
        L_0x01b6:
            r11 = c.c.b.a.b.a.e.q;
            r11 = r11.matcher(r0);
            r11 = r11.matches();
            if (r11 != 0) goto L_0x01c4;
        L_0x01c2:
            r11 = 1;
            goto L_0x01c5;
        L_0x01c4:
            r11 = 0;
        L_0x01c5:
            if (r11 != 0) goto L_0x01c9;
        L_0x01c7:
            goto L_0x0065;
        L_0x01c9:
            r0 = r0.length();
            r11 = r10.length();
            if (r0 == r11) goto L_0x0315;
        L_0x01d3:
            r11 = c.c.b.a.b.a.j.a.h;
            java.util.Objects.requireNonNull(r11);
            r0 = java.net.IDN.toUnicode(r10);
            r12 = "\\.";
            r12 = r0.split(r12);
            r13 = c.c.b.a.b.a.j.a.f;
            r0 = r11.a;
            r0 = r0.get();
            if (r0 != 0) goto L_0x0220;
        L_0x01ec:
            r0 = r11.a;
            r0 = r0.compareAndSet(r5, r4);
            if (r0 == 0) goto L_0x0220;
        L_0x01f4:
            r14 = 0;
        L_0x01f5:
            r11.b();	 Catch:{ InterruptedIOException -> 0x021b, IOException -> 0x01fd }
            if (r14 == 0) goto L_0x0225;
        L_0x01fa:
            goto L_0x0209;
        L_0x01fb:
            r0 = move-exception;
            goto L_0x0211;
        L_0x01fd:
            r0 = move-exception;
            r15 = r0;
            r0 = c.c.b.a.b.a.i.e.a;	 Catch:{ all -> 0x01fb }
            r9 = 5;
            r5 = "Failed to read public suffix list";
            r0.g(r9, r5, r15);	 Catch:{ all -> 0x01fb }
            if (r14 == 0) goto L_0x0225;
        L_0x0209:
            r0 = java.lang.Thread.currentThread();
            r0.interrupt();
            goto L_0x0225;
        L_0x0211:
            if (r14 == 0) goto L_0x021a;
        L_0x0213:
            r1 = java.lang.Thread.currentThread();
            r1.interrupt();
        L_0x021a:
            throw r0;
        L_0x021b:
            r5 = 0;
            r9 = 46;
            r14 = 1;
            goto L_0x01f5;
        L_0x0220:
            r0 = r11.b;	 Catch:{ InterruptedException -> 0x0225 }
            r0.await();	 Catch:{ InterruptedException -> 0x0225 }
        L_0x0225:
            monitor-enter(r11);
            r0 = r11.c;	 Catch:{ all -> 0x0312 }
            if (r0 == 0) goto L_0x030a;
        L_0x022a:
            monitor-exit(r11);	 Catch:{ all -> 0x0312 }
            r0 = r12.length;
            r5 = new byte[r0][];
            r9 = 0;
        L_0x022f:
            r14 = r12.length;
            if (r9 >= r14) goto L_0x023f;
        L_0x0232:
            r14 = r12[r9];
            r15 = c.c.b.a.b.a.e.j;
            r14 = r14.getBytes(r15);
            r5[r9] = r14;
            r9 = r9 + 1;
            goto L_0x022f;
        L_0x023f:
            r9 = 0;
        L_0x0240:
            if (r9 >= r0) goto L_0x024e;
        L_0x0242:
            r14 = r11.c;
            r14 = c.c.b.a.b.a.j.a.a(r14, r5, r9);
            if (r14 == 0) goto L_0x024b;
        L_0x024a:
            goto L_0x024f;
        L_0x024b:
            r9 = r9 + 1;
            goto L_0x0240;
        L_0x024e:
            r14 = 0;
        L_0x024f:
            if (r0 <= r4) goto L_0x026e;
        L_0x0251:
            r9 = r5.clone();
            r9 = (byte[][]) r9;
            r27 = r2;
            r15 = 0;
        L_0x025a:
            r2 = r9.length;
            r2 = r2 - r4;
            if (r15 >= r2) goto L_0x0270;
        L_0x025e:
            r2 = c.c.b.a.b.a.j.a.e;
            r9[r15] = r2;
            r2 = r11.c;
            r2 = c.c.b.a.b.a.j.a.a(r2, r9, r15);
            if (r2 == 0) goto L_0x026b;
        L_0x026a:
            goto L_0x0271;
        L_0x026b:
            r15 = r15 + 1;
            goto L_0x025a;
        L_0x026e:
            r27 = r2;
        L_0x0270:
            r2 = 0;
        L_0x0271:
            if (r2 == 0) goto L_0x0284;
        L_0x0273:
            r9 = 0;
        L_0x0274:
            r15 = r0 + -1;
            if (r9 >= r15) goto L_0x0284;
        L_0x0278:
            r15 = r11.d;
            r15 = c.c.b.a.b.a.j.a.a(r15, r5, r9);
            if (r15 == 0) goto L_0x0281;
        L_0x0280:
            goto L_0x0285;
        L_0x0281:
            r9 = r9 + 1;
            goto L_0x0274;
        L_0x0284:
            r15 = 0;
        L_0x0285:
            if (r15 == 0) goto L_0x029f;
        L_0x0287:
            r0 = new java.lang.StringBuilder;
            r0.<init>();
            r2 = "!";
            r0.append(r2);
            r0.append(r15);
            r0 = r0.toString();
            r2 = "\\.";
            r0 = r0.split(r2);
            goto L_0x02be;
        L_0x029f:
            if (r14 != 0) goto L_0x02a6;
        L_0x02a1:
            if (r2 != 0) goto L_0x02a6;
        L_0x02a3:
            r0 = c.c.b.a.b.a.j.a.g;
            goto L_0x02be;
        L_0x02a6:
            if (r14 == 0) goto L_0x02af;
        L_0x02a8:
            r0 = "\\.";
            r0 = r14.split(r0);
            goto L_0x02b0;
        L_0x02af:
            r0 = r13;
        L_0x02b0:
            if (r2 == 0) goto L_0x02b8;
        L_0x02b2:
            r5 = "\\.";
            r13 = r2.split(r5);
        L_0x02b8:
            r2 = r0.length;
            r5 = r13.length;
            if (r2 <= r5) goto L_0x02bd;
        L_0x02bc:
            goto L_0x02be;
        L_0x02bd:
            r0 = r13;
        L_0x02be:
            r2 = r12.length;
            r5 = r0.length;
            r9 = 33;
            if (r2 != r5) goto L_0x02cf;
        L_0x02c4:
            r2 = 0;
            r5 = r0[r2];
            r5 = r5.charAt(r2);
            if (r5 == r9) goto L_0x02d0;
        L_0x02cd:
            r0 = 0;
            goto L_0x0306;
        L_0x02cf:
            r2 = 0;
        L_0x02d0:
            r5 = r0[r2];
            r5 = r5.charAt(r2);
            if (r5 != r9) goto L_0x02db;
        L_0x02d8:
            r2 = r12.length;
            r0 = r0.length;
            goto L_0x02de;
        L_0x02db:
            r2 = r12.length;
            r0 = r0.length;
            r0 = r0 + r4;
        L_0x02de:
            r2 = r2 - r0;
            r0 = new java.lang.StringBuilder;
            r0.<init>();
            r5 = "\\.";
            r5 = r10.split(r5);
        L_0x02ea:
            r9 = r5.length;
            if (r2 >= r9) goto L_0x02fa;
        L_0x02ed:
            r9 = r5[r2];
            r0.append(r9);
            r9 = 46;
            r0.append(r9);
            r2 = r2 + 1;
            goto L_0x02ea;
        L_0x02fa:
            r2 = r0.length();
            r2 = r2 - r4;
            r0.deleteCharAt(r2);
            r0 = r0.toString();
        L_0x0306:
            if (r0 != 0) goto L_0x0317;
        L_0x0308:
            goto L_0x0067;
        L_0x030a:
            r0 = new java.lang.IllegalStateException;	 Catch:{ all -> 0x0312 }
            r1 = "Unable to load publicsuffixes.gz resource from the classpath.";
            r0.<init>(r1);	 Catch:{ all -> 0x0312 }
            throw r0;	 Catch:{ all -> 0x0312 }
        L_0x0312:
            r0 = move-exception;
            monitor-exit(r11);	 Catch:{ all -> 0x0312 }
            throw r0;
        L_0x0315:
            r27 = r2;
        L_0x0317:
            r2 = r29;
            if (r2 == 0) goto L_0x0328;
        L_0x031b:
            r0 = "/";
            r0 = r2.startsWith(r0);
            if (r0 != 0) goto L_0x0324;
        L_0x0323:
            goto L_0x0328;
        L_0x0324:
            r21 = r2;
            r4 = 0;
            goto L_0x033f;
        L_0x0328:
            r0 = r35.m();
            r2 = 47;
            r2 = r0.lastIndexOf(r2);
            if (r2 == 0) goto L_0x033a;
        L_0x0334:
            r4 = 0;
            r0 = r0.substring(r4, r2);
            goto L_0x033d;
        L_0x033a:
            r4 = 0;
            r0 = "/";
        L_0x033d:
            r21 = r0;
        L_0x033f:
            r0 = new c.c.b.a.b.o;
            r15 = r0;
            r20 = r10;
            r15.m959init(r16, r17, r18, r20, r21, r22, r23, r24, r25);
            goto L_0x0349;
        L_0x0348:
            r0 = 0;
        L_0x0349:
            if (r0 != 0) goto L_0x034c;
        L_0x034b:
            goto L_0x0357;
        L_0x034c:
            if (r7 != 0) goto L_0x0354;
        L_0x034e:
            r2 = new java.util.ArrayList;
            r2.<init>();
            r7 = r2;
        L_0x0354:
            r7.add(r0);
        L_0x0357:
            r6 = r6 + 1;
            r2 = r27;
            r5 = 0;
            goto L_0x0044;
        L_0x035e:
            if (r7 == 0) goto L_0x0365;
        L_0x0360:
            r0 = java.util.Collections.unmodifiableList(r7);
            goto L_0x0369;
        L_0x0365:
            r0 = java.util.Collections.emptyList();
        L_0x0369:
            r0 = r0.isEmpty();
            if (r0 == 0) goto L_0x0370;
        L_0x036f:
            return;
        L_0x0370:
            r0 = r1;
            r0 = (c.c.b.a.b.p.a) r0;
            java.util.Objects.requireNonNull(r0);
            return;
            */
            throw new UnsupportedOperationException("Method not decompiled: c.c.b.a.b.a.e$f.c(c.c.b.a.b.p, c.c.b.a.b.w, c.c.b.a.b.v):void");
        }

        public static int d(String str, int i) {
            try {
                long parseLong = Long.parseLong(str);
                if (parseLong > 2147483647L) {
                    return Integer.MAX_VALUE;
                }
                if (parseLong < 0) {
                    return 0;
                }
                i = (int) parseLong;
                return i;
            } catch (NumberFormatException unused) {
            }
        }

        public static boolean e(c.c.b.a.b.c cVar) {
            if (cVar.a.b.equals("HEAD")) {
                return false;
            }
            int i = cVar.c;
            if (((i >= 100 && i < AGCServerException.OK) || i == 204 || i == 304) && b(cVar) == -1) {
                String c = cVar.f.c("Transfer-Encoding");
                if (c == null) {
                    c = null;
                }
                if ("chunked".equalsIgnoreCase(c)) {
                    return true;
                }
                return false;
            }
            return true;
        }
    }

    /* compiled from: StatusLine */
    public final class j {
        public final a0 a;
        public final int b;
        public final String c;

        public j(a0 a0Var, int i, String str) {
            this.a = a0Var;
            this.b = i;
            this.c = str;
        }

        public static j a(String str) throws IOException {
            int charAt;
            a0 a0Var = a0.HTTP_1_0;
            int i = 9;
            String str2 = "Unexpected status line: ";
            if (str.startsWith("HTTP/1.")) {
                if (str.length() < 9 || str.charAt(8) != ' ') {
                    throw new ProtocolException(c.b.a.a.a.D(str2, str));
                }
                charAt = str.charAt(7) - 48;
                if (charAt != 0) {
                    if (charAt == 1) {
                        a0Var = a0.HTTP_1_1;
                    } else {
                        throw new ProtocolException(c.b.a.a.a.D(str2, str));
                    }
                }
            } else if (str.startsWith("ICY ")) {
                i = 4;
            } else {
                throw new ProtocolException(c.b.a.a.a.D(str2, str));
            }
            int i2 = i + 3;
            if (str.length() >= i2) {
                try {
                    charAt = Integer.parseInt(str.substring(i, i2));
                    if (str.length() <= i2) {
                        str = "";
                    } else if (str.charAt(i2) == ' ') {
                        str = str.substring(i + 4);
                    } else {
                        throw new ProtocolException(c.b.a.a.a.D(str2, str));
                    }
                    return new j(a0Var, charAt, str);
                } catch (NumberFormatException unused) {
                    throw new ProtocolException(c.b.a.a.a.D(str2, str));
                }
            }
            throw new ProtocolException(c.b.a.a.a.D(str2, str));
        }

        public String toString() {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append(this.a == a0.HTTP_1_0 ? "HTTP/1.0" : "HTTP/1.1");
            stringBuilder.append(' ');
            stringBuilder.append(this.b);
            if (this.c != null) {
                stringBuilder.append(' ');
                stringBuilder.append(this.c);
            }
            return stringBuilder.toString();
        }
    }

    /* compiled from: BridgeInterceptor */
    public final class b implements x {
        public final p a;

        public b(p pVar) {
            this.a = pVar;
        }

        public c.c.b.a.b.c a(c.c.b.a.b.x.a aVar) throws IOException {
            String str;
            c.c.b.a.b.v.a aVar2;
            String str2;
            c.c.b.a.b.v.a aVar3;
            String str3;
            Object obj;
            g gVar = (g) aVar;
            c0 c0Var = gVar.f;
            c.c.b.a.b.c0.a aVar4 = new c.c.b.a.b.c0.a(c0Var);
            e0 e0Var = c0Var.d;
            String str4 = "Content-Type";
            String str5 = "Content-Length";
            if (e0Var != null) {
                d0 d0Var = (d0) e0Var;
                y yVar = d0Var.a;
                if (yVar != null) {
                    aVar4.e(str4, yVar.a);
                }
                long j = (long) d0Var.b;
                str = "Transfer-Encoding";
                if (j != -1) {
                    aVar4.e(str5, Long.toString(j));
                    aVar4.c.a(str);
                } else {
                    aVar2 = aVar4.c;
                    str2 = "chunked";
                    aVar2.c(str, str2);
                    aVar2.a(str);
                    aVar2.a.add(str);
                    aVar2.a.add(str2);
                    aVar4.c.a(str5);
                }
            }
            String str6 = "Host";
            int i = 0;
            if (c0Var.c.c(str6) == null) {
                aVar4.e(str6, e.g(c0Var.a, false));
            }
            str6 = "Connection";
            if (c0Var.c.c(str6) == null) {
                aVar3 = aVar4.c;
                str3 = "Keep-Alive";
                aVar3.c(str6, str3);
                aVar3.a(str6);
                aVar3.a.add(str6);
                aVar3.a.add(str3);
            }
            str6 = "Accept-Encoding";
            str3 = "gzip";
            if (c0Var.c.c(str6) == null && c0Var.c.c("Range") == null) {
                aVar3 = aVar4.c;
                aVar3.c(str6, str3);
                aVar3.a(str6);
                aVar3.a.add(str6);
                aVar3.a.add(str3);
                obj = 1;
            } else {
                obj = null;
            }
            Objects.requireNonNull((c.c.b.a.b.p.a) this.a);
            List emptyList = Collections.emptyList();
            if (!emptyList.isEmpty()) {
                StringBuilder stringBuilder = new StringBuilder();
                int size = emptyList.size();
                while (i < size) {
                    if (i > 0) {
                        stringBuilder.append("; ");
                    }
                    o oVar = (o) emptyList.get(i);
                    stringBuilder.append(oVar.a);
                    stringBuilder.append('=');
                    stringBuilder.append(oVar.b);
                    i++;
                }
                aVar4.e("Cookie", stringBuilder.toString());
            }
            str2 = "User-Agent";
            if (c0Var.c.c(str2) == null) {
                aVar2 = aVar4.c;
                String str7 = "okhttp/3.9.1";
                aVar2.c(str2, str7);
                aVar2.a(str2);
                aVar2.a.add(str2);
                aVar2.a.add(str7);
            }
            c.c.b.a.b.c b = gVar.b(aVar4.h(), gVar.b, gVar.c, gVar.d);
            f.c(this.a, c0Var.a, b.f);
            c.c.b.a.b.c.a aVar5 = new c.c.b.a.b.c.a(b);
            aVar5.a = c0Var;
            if (obj != null) {
                str = "Content-Encoding";
                String c = b.f.c(str);
                str6 = null;
                if (c == null) {
                    c = null;
                }
                if (str3.equalsIgnoreCase(c) && f.e(b)) {
                    l lVar = new l(b.g.r());
                    c.c.b.a.b.v.a e = b.f.e();
                    e.a(str);
                    e.a(str5);
                    List list = e.a;
                    String[] strArr = (String[]) list.toArray(new String[list.size()]);
                    c.c.b.a.b.v.a aVar6 = new c.c.b.a.b.v.a();
                    Collections.addAll(aVar6.a, strArr);
                    aVar5.f = aVar6;
                    String c2 = b.f.c(str4);
                    if (c2 != null) {
                        str6 = c2;
                    }
                    Logger logger = c.c.b.a.a.o.a;
                    aVar5.g = new h(str6, -1, new r(lVar));
                }
            }
            return aVar5.b();
        }
    }

    /* compiled from: CallServerInterceptor */
    public final class c implements x {
        public final boolean a;

        /* compiled from: CallServerInterceptor */
        public static final class a extends c.c.b.a.a.i {
            public long b;

            public a(v vVar) {
                super(vVar);
            }

            public void g0(c.c.b.a.a.e eVar, long j) throws IOException {
                this.a.g0(eVar, j);
                this.b += j;
            }
        }

        public c(boolean z) {
            this.a = z;
        }

        /* JADX WARNING: Missing block: B:29:0x00f6, code skipped:
            if (r4.equalsIgnoreCase(r7) != false) goto L_0x00f8;
     */
        public c.c.b.a.b.c a(c.c.b.a.b.x.a r12) throws java.io.IOException {
            /*
            r11 = this;
            r12 = (c.c.b.a.b.a.e.g) r12;
            r0 = r12.c;
            r1 = r12.b;
            r2 = r12.d;
            r3 = r12.f;
            r4 = java.lang.System.currentTimeMillis();
            r6 = r12.h;
            java.util.Objects.requireNonNull(r6);
            r0.a(r3);
            r6 = r12.h;
            java.util.Objects.requireNonNull(r6);
            r6 = r3.b;
            r6 = b.i.b.f.H(r6);
            r7 = 0;
            if (r6 == 0) goto L_0x0085;
        L_0x0024:
            r6 = r3.d;
            if (r6 == 0) goto L_0x0085;
        L_0x0028:
            r6 = r3.c;
            r8 = "Expect";
            r6 = r6.c(r8);
            r8 = "100-continue";
            r6 = r8.equalsIgnoreCase(r6);
            if (r6 == 0) goto L_0x0046;
        L_0x0038:
            r0.a();
            r6 = r12.h;
            java.util.Objects.requireNonNull(r6);
            r6 = 1;
            r6 = r0.a(r6);
            goto L_0x0047;
        L_0x0046:
            r6 = r7;
        L_0x0047:
            if (r6 != 0) goto L_0x007b;
        L_0x0049:
            r2 = r12.h;
            java.util.Objects.requireNonNull(r2);
            r2 = r3.d;
            r2 = (c.c.b.a.b.d0) r2;
            r2 = r2.b;
            r8 = (long) r2;
            r2 = new c.c.b.a.b.a.e$c$a;
            r8 = r0.c(r3, r8);
            r2.m7922init(r8);
            r8 = c.c.b.a.a.o.a;
            r8 = new c.c.b.a.a.q;
            r8.m7920init(r2);
            r2 = r3.d;
            r2 = (c.c.b.a.b.d0) r2;
            r9 = r2.c;
            r10 = r2.d;
            r2 = r2.b;
            r8.k(r9, r10, r2);
            r8.close();
            r2 = r12.h;
            java.util.Objects.requireNonNull(r2);
            goto L_0x0086;
        L_0x007b:
            r2 = r2.j();
            if (r2 != 0) goto L_0x0086;
        L_0x0081:
            r1.i();
            goto L_0x0086;
        L_0x0085:
            r6 = r7;
        L_0x0086:
            r0.b();
            if (r6 != 0) goto L_0x0095;
        L_0x008b:
            r2 = r12.h;
            java.util.Objects.requireNonNull(r2);
            r2 = 0;
            r6 = r0.a(r2);
        L_0x0095:
            r6.a = r3;
            r2 = r1.g();
            r2 = r2.f;
            r6.e = r2;
            r6.k = r4;
            r2 = java.lang.System.currentTimeMillis();
            r6.l = r2;
            r2 = r6.b();
            r12 = r12.h;
            java.util.Objects.requireNonNull(r12);
            r12 = r2.c;
            r3 = r11.a;
            if (r3 == 0) goto L_0x00c8;
        L_0x00b6:
            r3 = 101; // 0x65 float:1.42E-43 double:5.0E-322;
            if (r12 != r3) goto L_0x00c8;
        L_0x00ba:
            r0 = new c.c.b.a.b.c$a;
            r0.m933init(r2);
            r2 = c.c.b.a.b.a.e.c;
            r0.g = r2;
            r0 = r0.b();
            goto L_0x00d7;
        L_0x00c8:
            r3 = new c.c.b.a.b.c$a;
            r3.m933init(r2);
            r0 = r0.b(r2);
            r3.g = r0;
            r0 = r3.b();
        L_0x00d7:
            r2 = r0.a;
            r2 = r2.c;
            r3 = "Connection";
            r2 = r2.c(r3);
            r4 = "close";
            r2 = r4.equalsIgnoreCase(r2);
            if (r2 != 0) goto L_0x00f8;
        L_0x00e9:
            r2 = r0.f;
            r2 = r2.c(r3);
            if (r2 == 0) goto L_0x00f2;
        L_0x00f1:
            r7 = r2;
        L_0x00f2:
            r2 = r4.equalsIgnoreCase(r7);
            if (r2 == 0) goto L_0x00fb;
        L_0x00f8:
            r1.i();
        L_0x00fb:
            r1 = 204; // 0xcc float:2.86E-43 double:1.01E-321;
            if (r12 == r1) goto L_0x0103;
        L_0x00ff:
            r1 = 205; // 0xcd float:2.87E-43 double:1.013E-321;
            if (r12 != r1) goto L_0x010f;
        L_0x0103:
            r1 = r0.g;
            r1 = r1.o();
            r3 = 0;
            r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));
            if (r5 > 0) goto L_0x0110;
        L_0x010f:
            return r0;
        L_0x0110:
            r1 = new java.net.ProtocolException;
            r2 = "HTTP ";
            r3 = " had non-zero Content-Length: ";
            r12 = c.b.a.a.a.h(r2, r12, r3);
            r0 = r0.g;
            r2 = r0.o();
            r12.append(r2);
            r12 = r12.toString();
            r1.<init>(r12);
            throw r1;
            */
            throw new UnsupportedOperationException("Method not decompiled: c.c.b.a.b.a.e$c.a(c.c.b.a.b.x$a):c.c.b.a.b.c");
        }
    }

    /* compiled from: RealInterceptorChain */
    public final class g implements c.c.b.a.b.x.a {
        public final List<x> a;
        public final c.c.b.a.b.a.c.g b;
        public final d c;
        public final c.c.b.a.b.a.c.c d;
        public final int e;
        public final c0 f;
        public final c.c.b.a.b.j g;
        public final s h;
        public final int i;
        public final int j;
        public final int k;
        public int l;

        public g(List<x> list, c.c.b.a.b.a.c.g gVar, d dVar, c.c.b.a.b.a.c.c cVar, int i, c0 c0Var, c.c.b.a.b.j jVar, s sVar, int i2, int i3, int i4) {
            this.a = list;
            this.d = cVar;
            this.b = gVar;
            this.c = dVar;
            this.e = i;
            this.f = c0Var;
            this.g = jVar;
            this.h = sVar;
            this.i = i2;
            this.j = i3;
            this.k = i4;
        }

        public c.c.b.a.b.c a(c0 c0Var) throws IOException {
            return b(c0Var, this.b, this.c, this.d);
        }

        public c.c.b.a.b.c b(c0 c0Var, c.c.b.a.b.a.c.g gVar, d dVar, c.c.b.a.b.a.c.c cVar) throws IOException {
            if (this.e < this.a.size()) {
                StringBuilder g;
                this.l++;
                String str = "network interceptor ";
                if (this.c == null) {
                    c0 c0Var2 = c0Var;
                } else if (!this.d.i(c0Var.a)) {
                    g = c.b.a.a.a.g(str);
                    g.append(this.a.get(this.e - 1));
                    g.append(" must retain the same host and port");
                    throw new IllegalStateException(g.toString());
                }
                String str2 = " must call proceed() exactly once";
                if (this.c == null || this.l <= 1) {
                    List list = this.a;
                    int i = this.e;
                    int i2 = i + 1;
                    c.c.b.a.b.j jVar = this.g;
                    s sVar = this.h;
                    int i3 = this.i;
                    int i4 = this.j;
                    int i5 = i4;
                    String str3 = str;
                    int i6 = i;
                    String str4 = str2;
                    g gVar2 = new g(list, gVar, dVar, cVar, i2, c0Var, jVar, sVar, i3, i5, this.k);
                    x xVar = (x) list.get(i6);
                    c.c.b.a.b.c a = xVar.a(gVar2);
                    if (dVar == null || this.e + 1 >= this.a.size() || gVar2.l == 1) {
                        String str5 = "interceptor ";
                        StringBuilder stringBuilder;
                        if (a == null) {
                            stringBuilder = new StringBuilder();
                            stringBuilder.append(str5);
                            stringBuilder.append(xVar);
                            stringBuilder.append(" returned null");
                            throw new NullPointerException(stringBuilder.toString());
                        } else if (a.g != null) {
                            return a;
                        } else {
                            stringBuilder = new StringBuilder();
                            stringBuilder.append(str5);
                            stringBuilder.append(xVar);
                            stringBuilder.append(" returned a response with no body");
                            throw new IllegalStateException(stringBuilder.toString());
                        }
                    }
                    g = new StringBuilder();
                    g.append(str3);
                    g.append(xVar);
                    g.append(str4);
                    throw new IllegalStateException(g.toString());
                }
                g = c.b.a.a.a.g(str);
                g.append(this.a.get(this.e - 1));
                g.append(str2);
                throw new IllegalStateException(g.toString());
            }
            throw new AssertionError();
        }
    }

    /* compiled from: RealResponseBody */
    public final class h extends c.c.b.a.b.e {
        public final String a;
        public final long b;
        public final c.c.b.a.a.g c;

        public h(String str, long j, c.c.b.a.a.g gVar) {
            this.a = str;
            this.b = j;
            this.c = gVar;
        }

        public y n() {
            String str = this.a;
            return str != null ? y.a(str) : null;
        }

        public long o() {
            return this.b;
        }

        public c.c.b.a.a.g r() {
            return this.c;
        }
    }

    /* compiled from: RetryAndFollowUpInterceptor */
    public final class i implements x {
        public final z a;
        public final boolean b;
        public c.c.b.a.b.a.c.g c;
        public Object d;

        public i(z zVar, boolean z) {
            this.a = zVar;
            this.b = z;
        }

        /* JADX WARNING: Removed duplicated region for block: B:83:0x0177  */
        /* JADX WARNING: Removed duplicated region for block: B:124:0x016d A:{SYNTHETIC} */
        /* JADX WARNING: Removed duplicated region for block: B:124:0x016d A:{SYNTHETIC} */
        /* JADX WARNING: Removed duplicated region for block: B:83:0x0177  */
        /* JADX WARNING: Removed duplicated region for block: B:83:0x0177  */
        /* JADX WARNING: Removed duplicated region for block: B:124:0x016d A:{SYNTHETIC} */
        /* JADX WARNING: Missing block: B:44:0x00c6, code skipped:
            if (r6.equals("HEAD") == false) goto L_0x0114;
     */
        public c.c.b.a.b.c a(c.c.b.a.b.x.a r15) throws java.io.IOException {
            /*
            r14 = this;
            r15 = (c.c.b.a.b.a.e.g) r15;
            r0 = r15.f;
            r7 = r15.g;
            r8 = r15.h;
            r9 = new c.c.b.a.b.a.c.g;
            r1 = r14.a;
            r2 = r1.r;
            r1 = r0.a;
            r3 = r14.b(r1);
            r6 = r14.d;
            r1 = r9;
            r4 = r7;
            r5 = r8;
            r1.m880init(r2, r3, r4, r5, r6);
            r14.c = r9;
            r9 = 0;
            r10 = 0;
            r1 = 0;
            r2 = r10;
        L_0x0022:
            r3 = 1;
            r4 = r14.c;	 Catch:{ e -> 0x01f7, IOException -> 0x01e7 }
            r0 = r15.b(r0, r4, r10, r10);	 Catch:{ e -> 0x01f7, IOException -> 0x01e7 }
            if (r2 == 0) goto L_0x004e;
        L_0x002b:
            r4 = new c.c.b.a.b.c$a;
            r4.m933init(r0);
            r0 = new c.c.b.a.b.c$a;
            r0.m933init(r2);
            r0.g = r10;
            r0 = r0.b();
            r2 = r0.g;
            if (r2 != 0) goto L_0x0046;
        L_0x003f:
            r4.j = r0;
            r0 = r4.b();
            goto L_0x004e;
        L_0x0046:
            r15 = new java.lang.IllegalArgumentException;
            r0 = "priorResponse.body != null";
            r15.<init>(r0);
            throw r15;
        L_0x004e:
            r2 = r14.c;
            r2 = r2.g();
            if (r2 == 0) goto L_0x0059;
        L_0x0056:
            r2 = r2.c;
            goto L_0x005a;
        L_0x0059:
            r2 = r10;
        L_0x005a:
            r4 = r0.c;
            r5 = r0.a;
            r6 = r5.b;
            r11 = 307; // 0x133 float:4.3E-43 double:1.517E-321;
            r12 = "GET";
            if (r4 == r11) goto L_0x00ba;
        L_0x0066:
            r11 = 308; // 0x134 float:4.32E-43 double:1.52E-321;
            if (r4 == r11) goto L_0x00ba;
        L_0x006a:
            r11 = 401; // 0x191 float:5.62E-43 double:1.98E-321;
            if (r4 == r11) goto L_0x00b2;
        L_0x006e:
            r11 = 407; // 0x197 float:5.7E-43 double:2.01E-321;
            if (r4 == r11) goto L_0x0090;
        L_0x0072:
            r2 = 408; // 0x198 float:5.72E-43 double:2.016E-321;
            if (r4 == r2) goto L_0x007b;
        L_0x0076:
            switch(r4) {
                case 300: goto L_0x00c9;
                case 301: goto L_0x00c9;
                case 302: goto L_0x00c9;
                case 303: goto L_0x00c9;
                default: goto L_0x0079;
            };
        L_0x0079:
            goto L_0x0114;
        L_0x007b:
            r3 = r14.a;
            r3 = r3.v;
            if (r3 != 0) goto L_0x0083;
        L_0x0081:
            goto L_0x0114;
        L_0x0083:
            r3 = r0.j;
            if (r3 == 0) goto L_0x008d;
        L_0x0087:
            r3 = r3.c;
            if (r3 != r2) goto L_0x008d;
        L_0x008b:
            goto L_0x0114;
        L_0x008d:
            r11 = r5;
            goto L_0x016b;
        L_0x0090:
            if (r2 == 0) goto L_0x0095;
        L_0x0092:
            r2 = r2.b;
            goto L_0x0099;
        L_0x0095:
            r2 = r14.a;
            r2 = r2.b;
        L_0x0099:
            r2 = r2.type();
            r3 = java.net.Proxy.Type.HTTP;
            if (r2 != r3) goto L_0x00aa;
        L_0x00a1:
            r2 = r14.a;
            r2 = r2.p;
            java.util.Objects.requireNonNull(r2);
            goto L_0x0114;
        L_0x00aa:
            r15 = new java.net.ProtocolException;
            r0 = "Received HTTP_PROXY_AUTH (407) code while not using proxy";
            r15.<init>(r0);
            throw r15;
        L_0x00b2:
            r2 = r14.a;
            r2 = r2.q;
            java.util.Objects.requireNonNull(r2);
            goto L_0x0114;
        L_0x00ba:
            r2 = r6.equals(r12);
            if (r2 != 0) goto L_0x00c9;
        L_0x00c0:
            r2 = "HEAD";
            r2 = r6.equals(r2);
            if (r2 != 0) goto L_0x00c9;
        L_0x00c8:
            goto L_0x0114;
        L_0x00c9:
            r2 = r14.a;
            r2 = r2.u;
            if (r2 != 0) goto L_0x00d0;
        L_0x00cf:
            goto L_0x0114;
        L_0x00d0:
            r2 = r0.f;
            r4 = "Location";
            r2 = r2.c(r4);
            if (r2 == 0) goto L_0x00db;
        L_0x00da:
            goto L_0x00dc;
        L_0x00db:
            r2 = r10;
        L_0x00dc:
            if (r2 != 0) goto L_0x00df;
        L_0x00de:
            goto L_0x0114;
        L_0x00df:
            r4 = r0.a;
            r4 = r4.a;
            java.util.Objects.requireNonNull(r4);
            r5 = new c.c.b.a.b.w$a;
            r5.m970init();
            r2 = r5.a(r4, r2);
            r4 = c.c.b.a.b.w.a.a.SUCCESS;
            if (r2 != r4) goto L_0x00f4;
        L_0x00f3:
            goto L_0x00f5;
        L_0x00f4:
            r5 = r10;
        L_0x00f5:
            if (r5 == 0) goto L_0x00fc;
        L_0x00f7:
            r2 = r5.b();
            goto L_0x00fd;
        L_0x00fc:
            r2 = r10;
        L_0x00fd:
            if (r2 != 0) goto L_0x0100;
        L_0x00ff:
            goto L_0x0114;
        L_0x0100:
            r4 = r2.a;
            r5 = r0.a;
            r5 = r5.a;
            r5 = r5.a;
            r4 = r4.equals(r5);
            if (r4 != 0) goto L_0x0116;
        L_0x010e:
            r4 = r14.a;
            r4 = r4.t;
            if (r4 != 0) goto L_0x0116;
        L_0x0114:
            r11 = r10;
            goto L_0x016b;
        L_0x0116:
            r4 = r0.a;
            r5 = new c.c.b.a.b.c0$a;
            r5.m935init(r4);
            r4 = b.i.b.f.H(r6);
            if (r4 == 0) goto L_0x0156;
        L_0x0123:
            r4 = "PROPFIND";
            r11 = r6.equals(r4);
            r4 = r6.equals(r4);
            r3 = r3 ^ r4;
            if (r3 == 0) goto L_0x0134;
        L_0x0130:
            r5.d(r12, r10);
            goto L_0x013f;
        L_0x0134:
            if (r11 == 0) goto L_0x013b;
        L_0x0136:
            r3 = r0.a;
            r3 = r3.d;
            goto L_0x013c;
        L_0x013b:
            r3 = r10;
        L_0x013c:
            r5.d(r6, r3);
        L_0x013f:
            if (r11 != 0) goto L_0x0156;
        L_0x0141:
            r3 = r5.c;
            r4 = "Transfer-Encoding";
            r3.a(r4);
            r3 = r5.c;
            r4 = "Content-Length";
            r3.a(r4);
            r3 = r5.c;
            r4 = "Content-Type";
            r3.a(r4);
        L_0x0156:
            r3 = r14.c(r0, r2);
            if (r3 != 0) goto L_0x0163;
        L_0x015c:
            r3 = r5.c;
            r4 = "Authorization";
            r3.a(r4);
        L_0x0163:
            r5.b(r2);
            r2 = r5.h();
            r11 = r2;
        L_0x016b:
            if (r11 != 0) goto L_0x0177;
        L_0x016d:
            r15 = r14.b;
            if (r15 != 0) goto L_0x0176;
        L_0x0171:
            r15 = r14.c;
            r15.h();
        L_0x0176:
            return r0;
        L_0x0177:
            r2 = r0.g;
            c.c.b.a.b.a.e.n(r2);
            r12 = r1 + 1;
            r1 = 20;
            if (r12 > r1) goto L_0x01d4;
        L_0x0182:
            r1 = r11.a;
            r1 = r14.c(r0, r1);
            if (r1 != 0) goto L_0x01a6;
        L_0x018a:
            r1 = r14.c;
            r1.h();
            r13 = new c.c.b.a.b.a.c.g;
            r1 = r14.a;
            r2 = r1.r;
            r1 = r11.a;
            r3 = r14.b(r1);
            r6 = r14.d;
            r1 = r13;
            r4 = r7;
            r5 = r8;
            r1.m880init(r2, r3, r4, r5, r6);
            r14.c = r13;
            goto L_0x01b0;
        L_0x01a6:
            r1 = r14.c;
            r2 = r1.d;
            monitor-enter(r2);
            r1 = r1.m;	 Catch:{ all -> 0x01d1 }
            monitor-exit(r2);	 Catch:{ all -> 0x01d1 }
            if (r1 != 0) goto L_0x01b5;
        L_0x01b0:
            r2 = r0;
            r0 = r11;
            r1 = r12;
            goto L_0x0022;
        L_0x01b5:
            r15 = new java.lang.IllegalStateException;
            r1 = new java.lang.StringBuilder;
            r1.<init>();
            r2 = "Closing the body of ";
            r1.append(r2);
            r1.append(r0);
            r0 = " didn't close its backing stream. Bad interceptor?";
            r1.append(r0);
            r0 = r1.toString();
            r15.<init>(r0);
            throw r15;
        L_0x01d1:
            r15 = move-exception;
            monitor-exit(r2);	 Catch:{ all -> 0x01d1 }
            throw r15;
        L_0x01d4:
            r15 = r14.c;
            r15.h();
            r15 = new java.net.ProtocolException;
            r0 = "Too many follow-up requests: ";
            r0 = c.b.a.a.a.A(r0, r12);
            r15.<init>(r0);
            throw r15;
        L_0x01e5:
            r15 = move-exception;
            goto L_0x0205;
        L_0x01e7:
            r4 = move-exception;
            r5 = r4 instanceof c.c.b.a.b.a.h.a;	 Catch:{ all -> 0x01e5 }
            if (r5 != 0) goto L_0x01ed;
        L_0x01ec:
            goto L_0x01ee;
        L_0x01ed:
            r3 = 0;
        L_0x01ee:
            r3 = r14.d(r4, r3, r0);	 Catch:{ all -> 0x01e5 }
            if (r3 == 0) goto L_0x01f6;
        L_0x01f4:
            goto L_0x0022;
        L_0x01f6:
            throw r4;	 Catch:{ all -> 0x01e5 }
        L_0x01f7:
            r3 = move-exception;
            r4 = r3.a;	 Catch:{ all -> 0x01e5 }
            r4 = r14.d(r4, r9, r0);	 Catch:{ all -> 0x01e5 }
            if (r4 == 0) goto L_0x0202;
        L_0x0200:
            goto L_0x0022;
        L_0x0202:
            r15 = r3.a;	 Catch:{ all -> 0x01e5 }
            throw r15;	 Catch:{ all -> 0x01e5 }
        L_0x0205:
            r0 = r14.c;
            r0.e(r10);
            r0 = r14.c;
            r0.h();
            throw r15;
            */
            throw new UnsupportedOperationException("Method not decompiled: c.c.b.a.b.a.e$i.a(c.c.b.a.b.x$a):c.c.b.a.b.c");
        }

        public final c.c.b.a.b.b b(w wVar) {
            k kVar;
            SSLSocketFactory sSLSocketFactory;
            HostnameVerifier hostnameVerifier;
            w wVar2 = wVar;
            if (wVar2.a.equals("https")) {
                z zVar = this.a;
                SSLSocketFactory sSLSocketFactory2 = zVar.l;
                HostnameVerifier hostnameVerifier2 = zVar.n;
                kVar = zVar.o;
                sSLSocketFactory = sSLSocketFactory2;
                hostnameVerifier = hostnameVerifier2;
            } else {
                sSLSocketFactory = null;
                hostnameVerifier = sSLSocketFactory;
                kVar = hostnameVerifier;
            }
            String str = wVar2.d;
            int i = wVar2.e;
            z zVar2 = this.a;
            return new c.c.b.a.b.b(str, i, zVar2.s, zVar2.k, sSLSocketFactory, hostnameVerifier, kVar, zVar2.p, zVar2.b, zVar2.c, zVar2.d, zVar2.h);
        }

        public final boolean c(c.c.b.a.b.c cVar, w wVar) {
            w wVar2 = cVar.a.a;
            return wVar2.d.equals(wVar.d) && wVar2.e == wVar.e && wVar2.a.equals(wVar.a);
        }

        /* JADX WARNING: Removed duplicated region for block: B:34:0x0059 A:{RETURN} */
        /* JADX WARNING: Removed duplicated region for block: B:33:0x0058 A:{RETURN} */
        public final boolean d(java.io.IOException r3, boolean r4, c.c.b.a.b.c0 r5) {
            /*
            r2 = this;
            r0 = r2.c;
            r0.e(r3);
            r0 = r2.a;
            r0 = r0.v;
            r1 = 0;
            if (r0 != 0) goto L_0x000d;
        L_0x000c:
            return r1;
        L_0x000d:
            if (r4 == 0) goto L_0x0011;
        L_0x000f:
            r5 = r5.d;
        L_0x0011:
            r5 = r3 instanceof java.net.ProtocolException;
            r0 = 1;
            if (r5 == 0) goto L_0x0017;
        L_0x0016:
            goto L_0x0023;
        L_0x0017:
            r5 = r3 instanceof java.io.InterruptedIOException;
            if (r5 == 0) goto L_0x0025;
        L_0x001b:
            r3 = r3 instanceof java.net.SocketTimeoutException;
            if (r3 == 0) goto L_0x0023;
        L_0x001f:
            if (r4 != 0) goto L_0x0023;
        L_0x0021:
            r3 = 1;
            goto L_0x0037;
        L_0x0023:
            r3 = 0;
            goto L_0x0037;
        L_0x0025:
            r4 = r3 instanceof javax.net.ssl.SSLHandshakeException;
            if (r4 == 0) goto L_0x0032;
        L_0x0029:
            r4 = r3.getCause();
            r4 = r4 instanceof java.security.cert.CertificateException;
            if (r4 == 0) goto L_0x0032;
        L_0x0031:
            goto L_0x0023;
        L_0x0032:
            r3 = r3 instanceof javax.net.ssl.SSLPeerUnverifiedException;
            if (r3 == 0) goto L_0x0021;
        L_0x0036:
            goto L_0x0023;
        L_0x0037:
            if (r3 != 0) goto L_0x003a;
        L_0x0039:
            return r1;
        L_0x003a:
            r3 = r2.c;
            r4 = r3.c;
            if (r4 != 0) goto L_0x0055;
        L_0x0040:
            r4 = r3.b;
            if (r4 == 0) goto L_0x004a;
        L_0x0044:
            r4 = r4.a();
            if (r4 != 0) goto L_0x0055;
        L_0x004a:
            r3 = r3.h;
            r3 = r3.b();
            if (r3 == 0) goto L_0x0053;
        L_0x0052:
            goto L_0x0055;
        L_0x0053:
            r3 = 0;
            goto L_0x0056;
        L_0x0055:
            r3 = 1;
        L_0x0056:
            if (r3 != 0) goto L_0x0059;
        L_0x0058:
            return r1;
        L_0x0059:
            return r0;
            */
            throw new UnsupportedOperationException("Method not decompiled: c.c.b.a.b.a.e$i.d(java.io.IOException, boolean, c.c.b.a.b.c0):boolean");
        }
    }

    static {
        byte[] bArr = new byte[0];
        a = bArr;
        c.c.b.a.a.e eVar = new c.c.b.a.a.e();
        eVar.s0(bArr);
        c = new c.c.b.a.b.d(null, (long) bArr.length, eVar);
        d = e0.a(null, bArr);
        Charset.forName("ISO-8859-1");
    }

    public static int a(char c) {
        if (c >= '0' && c <= '9') {
            return c - 48;
        }
        int i = 97;
        if (c < 'a' || c > 'f') {
            i = 65;
            if (c < 'A' || c > 'F') {
                return -1;
            }
        }
        return (c - i) + 10;
    }

    public static int b(String str, int i, int i2) {
        while (i < i2) {
            char charAt = str.charAt(i);
            if (charAt != 9 && charAt != 10 && charAt != 12 && charAt != 13 && charAt != ' ') {
                return i;
            }
            i++;
        }
        return i2;
    }

    public static int c(String str, int i, int i2, char c) {
        while (i < i2) {
            if (str.charAt(i) == c) {
                return i;
            }
            i++;
        }
        return i2;
    }

    public static int d(String str, int i, int i2, String str2) {
        while (i < i2) {
            if (str2.indexOf(str.charAt(i)) != -1) {
                return i;
            }
            i++;
        }
        return i2;
    }

    public static int e(String str, long j, TimeUnit timeUnit) {
        int i = (j > 0 ? 1 : (j == 0 ? 0 : -1));
        if (i >= 0) {
            Objects.requireNonNull(timeUnit, "unit == null");
            j = timeUnit.toMillis(j);
            if (j > 2147483647L) {
                throw new IllegalArgumentException(c.b.a.a.a.D(str, " too large."));
            } else if (j != 0 || i <= 0) {
                return (int) j;
            } else {
                throw new IllegalArgumentException(c.b.a.a.a.D(str, " too small."));
            }
        }
        throw new IllegalArgumentException(c.b.a.a.a.D(str, " < 0"));
    }

    public static AssertionError f(String str, Exception exception) {
        return (AssertionError) new AssertionError(str).initCause(exception);
    }

    public static String g(w wVar, boolean z) {
        String d;
        String str = ":";
        if (wVar.d.contains(str)) {
            d = c.b.a.a.a.d(c.b.a.a.a.g("["), wVar.d, "]");
        } else {
            d = wVar.d;
        }
        if (!z && wVar.e == w.a(wVar.a)) {
            return d;
        }
        StringBuilder i = c.b.a.a.a.i(d, str);
        i.append(wVar.e);
        return i.toString();
    }

    public static String h(String str) {
        int i = -1;
        int i2 = 1;
        int i3 = 0;
        if (str.contains(":")) {
            InetAddress y;
            if (str.startsWith("[") && str.endsWith("]")) {
                y = y(str, 1, str.length() - 1);
            } else {
                y = y(str, 0, str.length());
            }
            if (y == null) {
                return null;
            }
            byte[] address = y.getAddress();
            if (address.length == 16) {
                int i4 = 0;
                int i5 = 0;
                while (i4 < address.length) {
                    int i6 = i4;
                    while (i6 < 16 && address[i6] == (byte) 0 && address[i6 + 1] == (byte) 0) {
                        i6 += 2;
                    }
                    int i7 = i6 - i4;
                    if (i7 > i5 && i7 >= 4) {
                        i = i4;
                        i5 = i7;
                    }
                    i4 = i6 + 2;
                }
                c.c.b.a.a.e eVar = new c.c.b.a.a.e();
                while (i3 < address.length) {
                    if (i3 == i) {
                        eVar.h0(58);
                        i3 += i5;
                        if (i3 == 16) {
                            eVar.h0(58);
                        }
                    } else {
                        if (i3 > 0) {
                            eVar.h0(58);
                        }
                        eVar.j((long) (((address[i3] & ISdkLite.REGION_UNSET) << 8) | (address[i3 + 1] & ISdkLite.REGION_UNSET)));
                        i3 += 2;
                    }
                }
                return eVar.A0();
            }
            throw new AssertionError(c.b.a.a.a.E("Invalid IPv6 address: '", str, "'"));
        }
        try {
            str = IDN.toASCII(str).toLowerCase(Locale.US);
            if (str.isEmpty()) {
                return null;
            }
            int i8 = 0;
            while (i8 < str.length()) {
                char charAt = str.charAt(i8);
                if (charAt <= 31) {
                    break;
                } else if (charAt >= 127) {
                    break;
                } else if (" #%/:?@[\\]".indexOf(charAt) != -1) {
                    break;
                } else {
                    i8++;
                }
            }
            i2 = 0;
            if (i2 != 0) {
                return null;
            }
            return str;
        } catch (IllegalArgumentException unused) {
            return null;
        }
    }

    public static String i(String str, Object... objArr) {
        return String.format(Locale.US, str, objArr);
    }

    public static Charset j(c.c.b.a.a.g gVar, Charset charset) throws IOException {
        c.c.b.a.a.h hVar = e;
        if (gVar.x(0, hVar)) {
            gVar.p((long) hVar.v());
            return j;
        }
        hVar = f;
        if (gVar.x(0, hVar)) {
            gVar.p((long) hVar.v());
            return k;
        }
        hVar = g;
        if (gVar.x(0, hVar)) {
            gVar.p((long) hVar.v());
            return l;
        }
        hVar = h;
        if (gVar.x(0, hVar)) {
            gVar.p((long) hVar.v());
            return m;
        }
        hVar = i;
        if (!gVar.x(0, hVar)) {
            return charset;
        }
        gVar.p((long) hVar.v());
        return n;
    }

    public static <T> List<T> k(List<T> list) {
        return Collections.unmodifiableList(new ArrayList(list));
    }

    public static <T> List<T> l(T... tArr) {
        return Collections.unmodifiableList(Arrays.asList((Object[]) tArr.clone()));
    }

    public static void m(long j, long j2, long j3) {
        if ((j2 | j3) < 0 || j2 > j || j - j2 < j3) {
            throw new ArrayIndexOutOfBoundsException();
        }
    }

    public static void n(Closeable closeable) {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (RuntimeException e) {
                throw e;
            } catch (Exception unused) {
            }
        }
    }

    public static void o(Socket socket) {
        if (socket != null) {
            try {
                socket.close();
            } catch (AssertionError e) {
                if (!q(e)) {
                    throw e;
                }
            } catch (RuntimeException e2) {
                throw e2;
            } catch (Exception unused) {
            }
        }
    }

    public static boolean p(c.c.b.a.a.w wVar, int i, TimeUnit timeUnit) {
        try {
            return v(wVar, i, timeUnit);
        } catch (IOException unused) {
            return false;
        }
    }

    public static boolean q(AssertionError assertionError) {
        return (assertionError.getCause() == null || assertionError.getMessage() == null || !assertionError.getMessage().contains("getsockname failed")) ? false : true;
    }

    public static boolean r(Object obj, Object obj2) {
        return obj == obj2 || (obj != null && obj.equals(obj2));
    }

    public static String[] s(Comparator<? super String> comparator, String[] strArr, String[] strArr2) {
        ArrayList arrayList = new ArrayList();
        for (Object obj : strArr) {
            for (Object compare : strArr2) {
                if (comparator.compare(obj, compare) == 0) {
                    arrayList.add(obj);
                    break;
                }
            }
        }
        return (String[]) arrayList.toArray(new String[arrayList.size()]);
    }

    public static int t(String str) {
        int length = str.length();
        for (int i = 0; i < length; i++) {
            char charAt = str.charAt(i);
            if (charAt <= 31 || charAt >= 127) {
                return i;
            }
        }
        return -1;
    }

    public static int u(String str, int i, int i2) {
        for (i2--; i2 >= i; i2--) {
            char charAt = str.charAt(i2);
            if (charAt != 9 && charAt != 10 && charAt != 12 && charAt != 13 && charAt != ' ') {
                return i2 + 1;
            }
        }
        return i;
    }

    public static boolean v(c.c.b.a.a.w wVar, int i, TimeUnit timeUnit) throws IOException {
        long nanoTime = System.nanoTime();
        long d = wVar.a().c() ? wVar.a().d() - nanoTime : Long.MAX_VALUE;
        wVar.a().a(Math.min(d, timeUnit.toNanos((long) i)) + nanoTime);
        try {
            c.c.b.a.a.e eVar = new c.c.b.a.a.e();
            while (wVar.b(eVar, 8192) != -1) {
                eVar.B0();
            }
            if (d == Long.MAX_VALUE) {
                wVar.a().f();
            } else {
                wVar.a().a(nanoTime + d);
            }
            return true;
        } catch (InterruptedIOException unused) {
            if (d == Long.MAX_VALUE) {
                wVar.a().f();
            } else {
                wVar.a().a(nanoTime + d);
            }
            return false;
        } catch (Throwable th) {
            if (d == Long.MAX_VALUE) {
                wVar.a().f();
            } else {
                wVar.a().a(nanoTime + d);
            }
            throw th;
        }
    }

    public static boolean w(Comparator<String> comparator, String[] strArr, String[] strArr2) {
        if (!(strArr == null || strArr2 == null || strArr.length == 0 || strArr2.length == 0)) {
            for (Object obj : strArr) {
                for (Object compare : strArr2) {
                    if (comparator.compare(obj, compare) == 0) {
                        return true;
                    }
                }
            }
        }
        return false;
    }

    public static String x(String str, int i, int i2) {
        i = b(str, i, i2);
        return str.substring(i, u(str, i, i2));
    }

    /* JADX WARNING: Removed duplicated region for block: B:47:0x009d  */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x009c A:{RETURN} */
    public static java.net.InetAddress y(java.lang.String r16, int r17, int r18) {
        /*
        r0 = r16;
        r1 = r18;
        r2 = 16;
        r3 = new byte[r2];
        r4 = -1;
        r5 = 0;
        r6 = r17;
        r7 = 0;
        r8 = -1;
        r9 = -1;
    L_0x000f:
        r10 = 0;
        if (r6 >= r1) goto L_0x00d5;
    L_0x0012:
        if (r7 != r2) goto L_0x0015;
    L_0x0014:
        return r10;
    L_0x0015:
        r11 = r6 + 2;
        r12 = 4;
        r13 = 255; // 0xff float:3.57E-43 double:1.26E-321;
        if (r11 > r1) goto L_0x0032;
    L_0x001c:
        r14 = "::";
        r15 = 2;
        r14 = r0.regionMatches(r6, r14, r5, r15);
        if (r14 == 0) goto L_0x0032;
    L_0x0025:
        if (r8 == r4) goto L_0x0028;
    L_0x0027:
        return r10;
    L_0x0028:
        r7 = r7 + 2;
        r8 = r7;
        if (r11 != r1) goto L_0x002f;
    L_0x002d:
        goto L_0x00d5;
    L_0x002f:
        r9 = r11;
        goto L_0x00a2;
    L_0x0032:
        if (r7 == 0) goto L_0x00a1;
    L_0x0034:
        r11 = ":";
        r14 = 1;
        r11 = r0.regionMatches(r6, r11, r5, r14);
        if (r11 == 0) goto L_0x0041;
    L_0x003d:
        r6 = r6 + 1;
        goto L_0x00a1;
    L_0x0041:
        r11 = ".";
        r6 = r0.regionMatches(r6, r11, r5, r14);
        if (r6 == 0) goto L_0x00a0;
    L_0x0049:
        r6 = r7 + -2;
        r11 = r6;
    L_0x004c:
        if (r9 >= r1) goto L_0x0094;
    L_0x004e:
        if (r11 != r2) goto L_0x0051;
    L_0x0050:
        goto L_0x0097;
    L_0x0051:
        if (r11 == r6) goto L_0x005e;
    L_0x0053:
        r15 = r0.charAt(r9);
        r14 = 46;
        if (r15 == r14) goto L_0x005c;
    L_0x005b:
        goto L_0x0097;
    L_0x005c:
        r9 = r9 + 1;
    L_0x005e:
        r14 = r9;
        r15 = 0;
    L_0x0060:
        if (r14 >= r1) goto L_0x0082;
    L_0x0062:
        r5 = r0.charAt(r14);
        r2 = 48;
        if (r5 < r2) goto L_0x0082;
    L_0x006a:
        r4 = 57;
        if (r5 <= r4) goto L_0x006f;
    L_0x006e:
        goto L_0x0082;
    L_0x006f:
        if (r15 != 0) goto L_0x0074;
    L_0x0071:
        if (r9 == r14) goto L_0x0074;
    L_0x0073:
        goto L_0x0097;
    L_0x0074:
        r15 = r15 * 10;
        r15 = r15 + r5;
        r15 = r15 - r2;
        if (r15 <= r13) goto L_0x007b;
    L_0x007a:
        goto L_0x0097;
    L_0x007b:
        r14 = r14 + 1;
        r2 = 16;
        r4 = -1;
        r5 = 0;
        goto L_0x0060;
    L_0x0082:
        r2 = r14 - r9;
        if (r2 != 0) goto L_0x0087;
    L_0x0086:
        goto L_0x0097;
    L_0x0087:
        r2 = r11 + 1;
        r4 = (byte) r15;
        r3[r11] = r4;
        r11 = r2;
        r9 = r14;
        r2 = 16;
        r4 = -1;
        r5 = 0;
        r14 = 1;
        goto L_0x004c;
    L_0x0094:
        r6 = r6 + r12;
        if (r11 == r6) goto L_0x0099;
    L_0x0097:
        r14 = 0;
        goto L_0x009a;
    L_0x0099:
        r14 = 1;
    L_0x009a:
        if (r14 != 0) goto L_0x009d;
    L_0x009c:
        return r10;
    L_0x009d:
        r7 = r7 + 2;
        goto L_0x00d5;
    L_0x00a0:
        return r10;
    L_0x00a1:
        r9 = r6;
    L_0x00a2:
        r6 = r9;
        r2 = 0;
    L_0x00a4:
        if (r6 >= r1) goto L_0x00b8;
    L_0x00a6:
        r4 = r0.charAt(r6);
        r4 = a(r4);
        r5 = -1;
        if (r4 != r5) goto L_0x00b2;
    L_0x00b1:
        goto L_0x00b8;
    L_0x00b2:
        r2 = r2 << 4;
        r2 = r2 + r4;
        r6 = r6 + 1;
        goto L_0x00a4;
    L_0x00b8:
        r4 = r6 - r9;
        if (r4 == 0) goto L_0x00d4;
    L_0x00bc:
        if (r4 <= r12) goto L_0x00bf;
    L_0x00be:
        goto L_0x00d4;
    L_0x00bf:
        r4 = r7 + 1;
        r5 = r2 >>> 8;
        r5 = r5 & r13;
        r5 = (byte) r5;
        r3[r7] = r5;
        r7 = r4 + 1;
        r2 = r2 & 255;
        r2 = (byte) r2;
        r3[r4] = r2;
        r2 = 16;
        r4 = -1;
        r5 = 0;
        goto L_0x000f;
    L_0x00d4:
        return r10;
    L_0x00d5:
        r0 = 16;
        if (r7 == r0) goto L_0x00eb;
    L_0x00d9:
        r1 = -1;
        if (r8 != r1) goto L_0x00dd;
    L_0x00dc:
        return r10;
    L_0x00dd:
        r1 = r7 - r8;
        r2 = 16 - r1;
        java.lang.System.arraycopy(r3, r8, r3, r2, r1);
        r2 = 16 - r7;
        r2 = r2 + r8;
        r0 = 0;
        java.util.Arrays.fill(r3, r8, r2, r0);
    L_0x00eb:
        r0 = java.net.InetAddress.getByAddress(r3);	 Catch:{ UnknownHostException -> 0x00f0 }
        return r0;
    L_0x00f0:
        r0 = new java.lang.AssertionError;
        r0.<init>();
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.c.b.a.b.a.e.y(java.lang.String, int, int):java.net.InetAddress");
    }
}
